str1 = "0001"
str2 = '0002'
str3 = str2 [6:0:-1]
str3 = str2 [-1:-8:-1]
str3 = str2 [::-1]
excerpts='''yyyy'''
name = input('qqqq')
if name in excerpts:
    #index("qqqq")
    index = excerpts.index(name)
    print(name,'qqqq',index)
    print(name,'yyyy',excerpts.count(name),'次')
else:
    print(name,'gggg')
